﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SeDuce.IDAL;

namespace SeDuce.BLL
{
    public class SizeBLL
    {
        private static readonly ISizeDAL dal = SeDuce.DALFactory.DataAccess.CreateSizeDAL();

        public DataTable GetSizes()
        {
            return dal.GetSizes();
        }

        public bool UpdateSize(SeDuce.Model.Size size)
        {
            return dal.UpdateSize(size);
        }

        public bool UpdateSizes(List<Model.Size> sizes)
        {
            return dal.UpdateSizes(sizes);
        }

        public bool InsertSize(SeDuce.Model.Size size)
        {
            return dal.InsertSize(size);
        }

        public bool DeleteSize(int sizeID)
        {
            return dal.DeleteSize(sizeID);
        }
    }
}
